package games;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

public class HandleMouseEvent implements MouseListener {
	private int x;
	private int y;
	private Controller controller;
	
	public HandleMouseEvent(int x, int y, Controller controller) {
		this.x = x;
		this.y = y;
		this.controller = controller;
	}

	@Override
	public void mouseClicked(MouseEvent me) {
		controller.setCoordinate(this.x, this.y);
		
	}

	@Override
	public void mouseEntered(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

}
